package com.tjzx.entity;

/**
 * PeisPatientComboTypeId entity. @author MyEclipse Persistence Tools
 */

public class PeisPatientComboTypeId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String vipComboType;
	private String vipComboMemo;
	private Integer types;

	// Constructors

	/** default constructor */
	public PeisPatientComboTypeId() {
	}

	/** minimal constructor */
	public PeisPatientComboTypeId(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public PeisPatientComboTypeId(Integer id, String vipComboType,
			String vipComboMemo, Integer types) {
		this.id = id;
		this.vipComboType = vipComboType;
		this.vipComboMemo = vipComboMemo;
		this.types = types;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getVipComboType() {
		return this.vipComboType;
	}

	public void setVipComboType(String vipComboType) {
		this.vipComboType = vipComboType;
	}

	public String getVipComboMemo() {
		return this.vipComboMemo;
	}

	public void setVipComboMemo(String vipComboMemo) {
		this.vipComboMemo = vipComboMemo;
	}

	public Integer getTypes() {
		return this.types;
	}

	public void setTypes(Integer types) {
		this.types = types;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PeisPatientComboTypeId))
			return false;
		PeisPatientComboTypeId castOther = (PeisPatientComboTypeId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getVipComboType() == castOther.getVipComboType()) || (this
						.getVipComboType() != null
						&& castOther.getVipComboType() != null && this
						.getVipComboType().equals(castOther.getVipComboType())))
				&& ((this.getVipComboMemo() == castOther.getVipComboMemo()) || (this
						.getVipComboMemo() != null
						&& castOther.getVipComboMemo() != null && this
						.getVipComboMemo().equals(castOther.getVipComboMemo())))
				&& ((this.getTypes() == castOther.getTypes()) || (this
						.getTypes() != null
						&& castOther.getTypes() != null && this.getTypes()
						.equals(castOther.getTypes())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37
				* result
				+ (getVipComboType() == null ? 0 : this.getVipComboType()
						.hashCode());
		result = 37
				* result
				+ (getVipComboMemo() == null ? 0 : this.getVipComboMemo()
						.hashCode());
		result = 37 * result
				+ (getTypes() == null ? 0 : this.getTypes().hashCode());
		return result;
	}

}